import axios from '../../utils/request'
// 工单位置信息读取
export const locationRead = (data) =>
{
    return axios({
        method: 'post',
        url: '/location/read',
        data
    })
}
// 工单位置信息创建
export const locationCreate = (data) =>
{
    return axios({
        method: 'post',
        url: '/location/create',
        data
    })
}
// 工单位置信息更新
export const locationUpDate = (data) =>
{
    return axios({
        method: 'post',
        url: '/location/read',
        data
    })
}
// 工单位置信息删除
export const locationDelete = (data) =>
{
    return axios({
        method: 'post',
        url: '/location/delete',
        data
    })
}
// 根据名字查找权限
export const locationFindByName = (data) =>
{
    return axios({
        method: 'post',
        url: '/location/findByName',
        data
    })
}